﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhongMachTu.OModel
{
    class Visit
    {
        private int _viID, _diseaseID, _numOfPa;
        private DateTime _visitDate;
        private string _symptom;
        private double _price, _revenue, _percent;
        private bool _paid;
        private Patient _patient;
        private Dictionary<Medicine, int> _medicines;

        public Visit()
        {
        }

        public Visit(DateTime date, int numOfPa, double revenue, double percent)
        {
            _visitDate = date;
            _numOfPa = numOfPa;
            _revenue = revenue;
            _percent = percent;
        }


        public Visit(int viID, DateTime visitDate, string symptom, double price, bool paid, int diseaseID)
        {
            _viID = viID;
            _visitDate = visitDate;
            _symptom = symptom;
            _price = price;
            _paid = paid;
            _diseaseID = diseaseID;

        }

        public int IdVisit
        {
            get { return _viID; }
            set { _viID = value; }
        }
        public DateTime VisitDate
        {
            get { return _visitDate; }
            set { _visitDate = value; }
        }
        public string Symtom
        {
            get { return _symptom; }
            set { _symptom = value; }
        }
        public double Price
        {
            get { return _price; }
            set { _price = value; }
        }
        public bool Paid
        {
            get { return _paid; }
            set { _paid = value; }
        }
        public Patient Patient
        {
            get { return _patient; }
            set { _patient = value; }
        }
        public int DiseaseID
        {
            get { return _diseaseID; }
            set { _diseaseID = value; }
        }
        public Dictionary<Medicine, int> Medicines
        {
            get { return _medicines; }
            set { _medicines = value; }
        }

        public double Revenue
        {
            get { return _revenue; }
            set { _revenue = value; }
        }


        public int NumOfPa
        {
            get { return _numOfPa; }
            set { _numOfPa = value; }
        }


        public double Percent
        {
            get { return _percent; }
            set { _percent = value; }
        }
    }
}
